package com.graduation.roombooking.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.graduation.roombooking.dto.EquipmentMultipleChoiceDTO;
import com.graduation.roombooking.pojo.Equipment;
import com.graduation.roombooking.vo.AddEquipmentVo;
import com.graduation.roombooking.vo.EquipmentUnionQueryVo;
import com.graduation.roombooking.vo.UpdateEquipmentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZhaoXinyi
 * @since 2022-05-04
 */
@Mapper
public interface EquipmentMapper extends BaseMapper<Equipment> {

    List<Equipment> getList(String companyName);

    int addOne(@Param("vo") AddEquipmentVo addEquipmentVo, @Param("companyName") String companyName);

    int updateEquipment(@Param("vo") UpdateEquipmentVo updateEquipmentVo, @Param("companyName") String companyName);

    int deleteOne(@Param("id")Integer id,@Param("companyName")String companyName);

    List<Equipment> unionQuery(@Param("vo") EquipmentUnionQueryVo unionQueryVo, @Param("companyName") String companyName);

    List<EquipmentMultipleChoiceDTO> getEquipmentMultipleChoice(String companyName);
}
